package com.test.rpc;

import com.test.rpc.test3.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class UserController {
    @Autowired
    Mapper mapper;

//    @Autowired
//    private UserService userService;

    @GetMapping("/user")
    public Map<String,Object> getUserInfo() {
        Map<String, Object> map = new HashMap<>();
        System.out.println(12312);
        System.out.println(7878123);
        mapper.query();
        map.put("123","fasdf");
//        map.put("userMapper",userMapper.getClass());
        return map;
    }
}